﻿@model QRCode.Models.SalesPromotionQuestion

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>SalesPromotionQuestion</legend>

        @Html.HiddenFor(model => model.ID)

        <div class="editor-field">
            <H1>SalesPromotionID = @ViewBag.SalesPromotionID</H1>
            @Html.HiddenFor(model => model.SalesPromotionID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Question1)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Question1)
            @Html.ValidationMessageFor(model => model.Question1)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Answer11)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Answer11)
            @Html.ValidationMessageFor(model => model.Answer11)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Answer21)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Answer21)
            @Html.ValidationMessageFor(model => model.Answer21)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Answer31)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Answer31)
            @Html.ValidationMessageFor(model => model.Answer31)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Answer41)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Answer41)
            @Html.ValidationMessageFor(model => model.Answer41)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Question2)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Question2)
            @Html.ValidationMessageFor(model => model.Question2)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Answer12)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Answer12)
            @Html.ValidationMessageFor(model => model.Answer12)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Answer22)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Answer22)
            @Html.ValidationMessageFor(model => model.Answer22)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Answer32)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Answer32)
            @Html.ValidationMessageFor(model => model.Answer32)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Answer42)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Answer42)
            @Html.ValidationMessageFor(model => model.Answer42)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Question3)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Question3)
            @Html.ValidationMessageFor(model => model.Question3)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Answer13)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Answer13)
            @Html.ValidationMessageFor(model => model.Answer13)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Answer23)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Answer23)
            @Html.ValidationMessageFor(model => model.Answer23)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Answer33)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Answer33)
            @Html.ValidationMessageFor(model => model.Answer33)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Answer43)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Answer43)
            @Html.ValidationMessageFor(model => model.Answer43)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Question4)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Question4)
            @Html.ValidationMessageFor(model => model.Question4)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Answer14)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Answer14)
            @Html.ValidationMessageFor(model => model.Answer14)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Answer24)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Answer24)
            @Html.ValidationMessageFor(model => model.Answer24)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Answer34)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Answer34)
            @Html.ValidationMessageFor(model => model.Answer34)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Answer44)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Answer44)
            @Html.ValidationMessageFor(model => model.Answer44)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Active)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Active)
            @Html.ValidationMessageFor(model => model.Active)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index", new { SalesPromotionID=ViewBag.SalesPromotionID })
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
